/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.wx.entity;

import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.Length;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * wx_business_user_tongjiEntity
 * @author wangjianxin
 * @version 2018-11-15
 */
@Table(name="wx_business_user_tongji", alias="a", columns={
		@Column(name="id", attrName="id", label="id", isPK=true),
		@Column(name="wx_business_user_id", attrName="wxBusinessUserId", label="员工id"),
		@Column(name="user_open_id", attrName="userOpenId", label="user_open_id"),
		@Column(name="activity_id", attrName="activityId", label="activity_id"),
		@Column(name="user_id", attrName="userId", label="user_id"),
		@Column(name="zhuanfa", attrName="zhuanfa", label="zhuanfa"),
		@Column(name="youlan", attrName="youlan", label="youlan"),
		@Column(name="goumai", attrName="goumai", label="goumai"),
		@Column(includeEntity=DataEntity.class),
	}, orderBy="a.update_date DESC"
)
public class WxBusinessUserTongji extends DataEntity<WxBusinessUserTongji> {
	
	private static final long serialVersionUID = 1L;
	private Long wxBusinessUserId;		// 员工id
	private String userOpenId;		// user_open_id
	private Long activityId;		// activity_id
	private Long userId;		// user_id
	private Long zhuanfa;		// zhuanfa
	private Long youlan;		// youlan
	private Long goumai;		// goumai

	private String activityName;
	private String nickName;

	private WxBusinessUser wxBusinessUser;
	
	public WxBusinessUserTongji() {
		this(null);
	}

	public WxBusinessUserTongji(String id){
		super(id);
	}
	
	@NotNull(message="员工id不能为空")
	public Long getWxBusinessUserId() {
		return wxBusinessUserId;
	}

	public void setWxBusinessUserId(Long wxBusinessUserId) {
		this.wxBusinessUserId = wxBusinessUserId;
	}
	
	@NotBlank(message="user_open_id不能为空")
	@Length(min=0, max=200, message="user_open_id长度不能超过 200 个字符")
	public String getUserOpenId() {
		return userOpenId;
	}

	public void setUserOpenId(String userOpenId) {
		this.userOpenId = userOpenId;
	}
	
	@NotNull(message="activity_id不能为空")
	public Long getActivityId() {
		return activityId;
	}

	public void setActivityId(Long activityId) {
		this.activityId = activityId;
	}
	
	@NotNull(message="user_id不能为空")
	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}
	
	@NotNull(message="zhuanfa不能为空")
	public Long getZhuanfa() {
		return zhuanfa;
	}

	public void setZhuanfa(Long zhuanfa) {
		this.zhuanfa = zhuanfa;
	}
	
	@NotNull(message="youlan不能为空")
	public Long getYoulan() {
		return youlan;
	}

	public void setYoulan(Long youlan) {
		this.youlan = youlan;
	}
	
	@NotNull(message="goumai不能为空")
	public Long getGoumai() {
		return goumai;
	}

	public void setGoumai(Long goumai) {
		this.goumai = goumai;
	}

	public WxBusinessUser getWxBusinessUser() {
		return wxBusinessUser;
	}

	public void setWxBusinessUser(WxBusinessUser wxBusinessUser) {
		this.wxBusinessUser = wxBusinessUser;
	}

	public String getActivityName() {
		return activityName;
	}

	public void setActivityName(String activityName) {
		this.activityName = activityName;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}
}